{#include file="admin_header.htm"#}
<script type="text/javascript" src="js/selectAll.js"></script>
<script type="text/javascript" src="js/is_show.js"></script>
<div class="admin_main_nr_dbox">
  <table width="700" border="0" cellspacing="8" cellpadding="0" class="link_lan">
    <tr>
      <td width="97" height="22" align="center" background="images/article_category_bg.jpg" style="background-repeat:no-repeat">顯示范圍</td>
      <td>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $is_paid eq ""#}background-color: #DFEDF7{#/if#}"><a href="?act=pay_list&is_paid=&payment_name={#$payment_name#}">不限</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $is_paid==2#}background-color: #DFEDF7{#/if#}"><a href="?act=pay_list&is_paid=2&payment_name={#$payment_name#}">已完成</a></div>
<div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $is_paid==1#}background-color: #DFEDF7{#/if#}"><a href="?act=pay_list&is_paid=1&payment_name={#$payment_name#}">待付款</a></div>
<div class="clear"></div></td>
    </tr>
    <tr>
      <td height="22" align="center" background="images/article_category_bg.jpg" style="background-repeat:no-repeat">付款方式</td>
      <td>
	  <div style=" float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $payment_name eq ""#}background-color: #DFEDF7{#/if#}"><a href="?act=pay_list&audit={#$is_paid#}&payment_name=">不限</a></div>
{#section name=payment_list loop=$payment_list#}
<div style="float:left; width:70px; height:22px; line-height:22px; margin-right:5px; text-align:center;{#if $payment_name==$payment_list[payment_list].typename#}background-color: #DFEDF7{#/if#}"><a href="?act=pay_list&audit={#$is_paid#}&payment_name={#$payment_list[payment_list].typename#}">{#$payment_list[payment_list].byname#}</a></div>
{#/section#}
<div class="clear"></div>
	  </td>
    </tr>
  </table>
  <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="150" border="0" cellspacing="2" cellpadding="0">
          <form action="?act=pay_list" method="post" name="form3" id="form3">
            <tr>
              <td width="41">每頁：</td>
              <td width="20"><input name="perpage" type="text" id="perpage"  style="width:30px; height:15px; color:#666666; border:1px #97ADCE solid; text-align:center"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$perpage#}" maxlength="3"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
              <td width="81"><input  style="font-family:Arial; font-size:10px; height:22px;" type="submit" name="Submitok"  value="OK" /></td>
            </tr>
          </form>
      </table></td>
      <td width="61%"><table width="300"  border="0" align="right" cellpadding="0" cellspacing="2">
      </table></td>
    </tr>
  </table>
  <table width="700" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
      <td width="68" height="26" align="center" bgcolor="#D0E2F7" >狀態</td>
      <td width="85" align="center" bgcolor="#D0E2F7" >充值金額</td>
      <td width="80" align="center"  bgcolor="#D0E2F7">獲得積分</td>
      <td width="100" align="center"  bgcolor="#D0E2F7">申請會員</td>
      <td width="90" align="center" bgcolor="#D0E2F7"  >支付方式</td>
      <td width="180" align="center" bgcolor="#D0E2F7"  >單號</td>
      <td align="center" bgcolor="#D0E2F7"  >操作</td>
    </tr>
  </table>
    <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="link_lan">
      {#section name=list loop=$list#}
      <tr class="row">
      <td width="68" height="34" align="center" style="border-bottom:1px #CCCCCC solid; padding-left:2px;">{#if $list[list].is_paid=="1"#}<span style="color: #FF6600">待付款...</span>{#/if#}{#if $list[list].is_paid=="2"#}已完成{#/if#}</td>
        <td width="85"  style="border-bottom:1px #CCCCCC solid;">&nbsp;&nbsp;&nbsp;&nbsp;￥{#$list[list].amount#}元</td>
        <td width="80" style="border-bottom:1px #CCCCCC solid">&nbsp;&nbsp;&nbsp;&nbsp;+ {#$list[list].points#}</td>
        <td width="105" style="border-bottom:1px #CCCCCC solid">&nbsp;&nbsp;&nbsp;&nbsp;{#$list[list].user.username#}</td>
        <td width="90" align="center" valign="middle" style="border-bottom:1px #CCCCCC solid;">{#$list[list].payment_name#}</td>
        <td width="180" align="center" style="border-bottom:1px #CCCCCC solid">{#$list[list].oid#}</td>
        <td align="center" style="border-bottom:1px #CCCCCC solid">
		{#if $list[list].is_paid==2#}<a href="?act=show_payment&id={#$list[list].id#}">查看</a>{#/if#}
		{#if $list[list].is_paid==1#}
		<a href="?act=pay_set&id={#$list[list].id#}">設置</a> <a href="?act=del_payment&id={#$list[list].id#}" onclick="return confirm('你確定要取消嗎？')">取消</a>{#/if#}		</td>
      </tr>
      {#sectionelse#}
  <tr>
    <td height="50" colspan="7" align="center">沒有任何記錄！</td>
  </tr>
      {#/section#}
    </table>
	{#if $list#}
	{#/if#}
	    <table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="link_page">
          <tr>
            <td height="40" align="center" >{#$page#}</td>
          </tr>
        </table></td>
      </tr>
    </table>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>
